<template>
  <div class="document">
    触发异常
    <el-button type="primary" size="default" @click="func">触发异常</el-button>
    <el-button type="primary" size="default" @click="func404">
      触发异常-404
    </el-button>
  </div>
</template>

<script setup lang="ts">
import { setErrorInfo, setErrorInfo404 } from "@/api/mock"
const func = async () => {
  const res = await setErrorInfo("test")
}
const func404 = async () => {
  const res = await setErrorInfo404("test404")
}
</script>

<style scoped lang="scss">
.document {
  width: 100%;
  height: 100%;
  overflow: hidden;

  iframe {
    width: 100%;
    height: 100%;
  }
}
</style>
